package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallFeedback;
import com.cskaoyan.bean.MallFeedbackExample;
import com.cskaoyan.model.bo.promote.WxFeedbackBo;
import com.cskaoyan.model.vo.user.FeedbackData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallFeedbackMapper {
    long countByExample(MallFeedbackExample example);

    int deleteByExample(MallFeedbackExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallFeedback record);

    int insertSelective(MallFeedback record);

    List<MallFeedback> selectByExample(MallFeedbackExample example);

    MallFeedback selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallFeedback record, @Param("example") MallFeedbackExample example);

    int updateByExample(@Param("record") MallFeedback record, @Param("example") MallFeedbackExample example);

    int updateByPrimaryKeySelective(MallFeedback record);

    int updateByPrimaryKey(MallFeedback record);

    List<FeedbackData> selectByExampleArray(MallFeedbackExample example);

    //feedback submit
    int submit(@Param("wxFeedbackBo") WxFeedbackBo wxFeedbackBo, @Param("userid") Integer userid);
}
